package com.dit.dao;

import com.dit.entity.Employee;
import com.dit.entity.EmployeeExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

public interface EmployeeMapper {

	
	int countByExample(EmployeeExample example);

	
	int deleteByExample(EmployeeExample example);

	int deleteByPrimaryKey(String id);

	int insert(Employee record);

	int insertSelective(Employee record);

	List<Employee> selectByExample(EmployeeExample example);

	Employee selectByPrimaryKey(String id);

	int updateByExampleSelective(@Param("record") Employee record,
			@Param("example") EmployeeExample example);
	
	int updateByExample(@Param("record") Employee record,
			@Param("example") EmployeeExample example);

	int updateByPrimaryKeySelective(Employee record);
	
	int updateByPrimaryKey(Employee record);
	
	@Select("SELECT * FROM employee")
	@ResultMap(value = "BaseResultMap")
	List<Employee> selectAll();
}